package com.hualan.sfzy.service;

import com.hualan.sfzy.entity.SysUser;
import com.hualan.sfzy.utils.Result;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface SysUserService extends BaseService<SysUser> {
    @Override
    int add(SysUser entity);

    @Override
    int edit(SysUser entity);

    @Override
    int remove(Integer id);

    @Override
    int removeBatch(Integer[] ids);

    @Override
    List<SysUser> find();

    List<SysUser> findAll();

    @Override
    Map<String, Object> findPage(Integer pageNum, Integer pageSize, SysUser entity);

    @Override
    SysUser findById(Integer id);

    SysUser findByUsername(String username);

    Result login(String username, String userpwd);
}
